#ifndef __LuaApplets_widget_h__
#define __LuaApplets_widget_h__

#include <fltk/Widget.h>

struct lua_State;

class LuaWidget : public fltk::Widget
{
public:
    LuaWidget(lua_State* L, int x, int y, int w, int h, const char* l = 0);
    virtual ~LuaWidget();

    virtual int handle(int);

    void handle_callback(int fi);

private:
    int key;
    lua_State* L;
};

#endif
